import request from "@/util/request";

export default {
    findAllStudents(){
        return request({
            url: '/student/list',
            method: 'get'
        })
    },
    findByPage(page, pageSize) {
        return request({
            url: `/student/findByPage/${page}/${pageSize}`,//有动态变量的需要使用反引号
            method: "get",
        })
    },

    search(page, pageSize, data){
        return request({
            url: `/student/search/${page}/${pageSize}`,
            method: "post",
            data
        })
    },
    save(url,data){
        return request({
            url: url,
            method: 'post',
            data: data
        })
    },
    deleteById(ids){
        return request({
            url: `/student/delete/${ids}`,
            method: 'delete'
        })
    },
}